<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: your name
// +----------------------------------------------------------------------
namespace app\cms\model;

use plugin\saiadmin\basic\BaseModel;

/**
 * 讲者简历模型
 */
class SpeakerResume extends BaseModel
{

    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 数据库表名称
     * @var string
     */
    protected $table = 'eb_speaker_resume';

    // protected $type = [
    //     'speaker_resume'      =>  'array',
    // ];


    /**
     * 关联模型speaker
     */
    public function speaker()
    {
        return $this->belongsTo(Speaker::class, 'speaker_id', 'id');
    }
}
